<%@ page import="your_car_status.MechanicalTechnician" %>
<!DOCTYPE html>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Crear un nuevo vehiculo</title>
    <meta name="layout" content="main">
  </head>
  <body>
    <br>
  <g:link class="list" action="newVehicle">
    <div class="tabSelected">
      Vehicles
    </div>
  </g:link>
  <g:link class="list" action="edit" id="${session.data.id}">
    <div class="tabNoSelected">
      Edit My data
    </div>
  </g:link>
  <g:link class="list" action="logout" controller="LogIn">
    <div class="tabNoSelected">Log Out</div>
  </g:link>
  <hr>
  <div id="edit-mechanicalTechnician" class="content scaffold-edit" role="main">
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${mechanicalTechnicianInstance}">
      <ul class="errors" role="alert">
        <g:eachError bean="${mechanicalTechnicianInstance}" var="error">
          <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
        </g:eachError>
      </ul>
    </g:hasErrors>
    <g:form method="post">
      <g:hiddenField name="id" value="${mechanicalTechnicianInstance?.id}" />
      <g:hiddenField name="version" value="${mechanicalTechnicianInstance?.version}" />
      <fieldset class="form">
        <g:render template="form"/>
      </fieldset>
      <fieldset class="buttons">
        <g:actionSubmit class="save" action="update" value="${message(code: 'Update')}" />
      </fieldset>
    </g:form>
  </div>
</body>
</html>